package com.lyy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Liangyaoyun
 */
@ResponseBody
@Controller
@RequestMapping(

        //URL地址
        value = "/api/v1/",
        //解决中文乱码问题
        produces = "application/json;charset=utf8",
        method={RequestMethod.GET,RequestMethod.POST}
)
public class StartController {

    @RequestMapping("/exe")
    public String exe(){
        System.out.println("请求成功");
        return "傻逼刘广";
    }
}
